/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package command;

import java.util.*;

/**
 *
 * @author Emmanuel
 */
public class Switch {
  private List<Comando> historial = new ArrayList();
 
   public Switch() {
   }
 
   public void guardarEjecutar(Comando cmd) {
      this.historial.add(cmd); // optional 
      cmd.ejecutar();        
   }
}
